import nf_core.lint


def test_modules_json_pass(self):
    self.lint_obj._load()
    results = self.lint_obj.modules_json()
    assert len(results.get("warned", [])) == 0
    assert len(results.get("failed", [])) == 0
    assert len(results.get("passed", [])) > 0
